﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Index.aspx.cs" Inherits="Default3" %>

<%@ Register Src="WebUserControl.ascx" TagName="WebUserControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="bookGrid">
        <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="BookStoreDataContext"
            EntityTypeName="" TableName="items">
        </asp:LinqDataSource>
        <asp:ListView runat="server" ID="lsvOffers" DataSourceID="LinqDataSource2" OnItemCommand="lsvOffers_ItemCommand">
            <LayoutTemplate>
                <div id="itemPlaceholder" runat="server">
                </div>
            </LayoutTemplate>
            <ItemTemplate>
                <!--boo-->
                <div class="bookInfoGrid">
                    <!--row1.c1-->
                    <div class="bookInfoImage">
                        <img src="<%#Eval("image_url")%>" />
                    </div>
                    <div class="bookInfoArea">
                        <!--infoText-->
                        <div class="bookInfoCaption">
                            <h5>
                                <%#Eval("name")%></h5>
                        </div>
                        <h3>Price</h3>
                        <div class="pnlPrice">
                            <span class="bookOldPrice">
                                <%#Eval("price")%></span> <span class="bookNewPrice">
                                    <%#Eval("price")%></span>
                        </div>
                        <asp:Panel ID="Panel1" runat="server" CssClass="buttonHolder">
                            <%--<asp:Label ID="Label1" runat="server" Text="Label" ></asp:Label>--%>
                            <asp:Button CssClass="btnDetail" ID="btnDetail" runat="server" Text="Detail"></asp:Button>
                            <a href='shoppingcart.aspx?cateID=<%#Eval("item_id") %>' class="btnAddtoCart">Add to Cart</a>
                        </asp:Panel>
                        <div class="bookInfoText">
                            <%#Eval("notes")%>
                            <%--sdm,sd,smd--%>
                        </div>
                        <h3>Author</h3>
                        <div class="bookInfoText">
                            <%#Eval("author")%>
                        </div>
                        <%--<div class="buttonHolder">
                            <span>
                                <button class="btnDetail">
                                    Detail</button></span> <span>
                                        <asp:Button CssClass="btnAddtoCart" ID="btnAddToCart" runat="server" Text="AddToCart">
                                        </asp:Button></span>
                        </div>--%>
                    </div>
                    <!--infoText-->
                </div>
                <!--boo-->
            </ItemTemplate>
        </asp:ListView>
        <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator"></asp:CustomValidator>
    </div>
    <!--bookGrid -->
    <div id="displayBar" class="bookInfoText">
        <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lsvOffers" PageSize="6">
            <Fields>
                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                    ShowPreviousPageButton="False" />
                <asp:NumericPagerField />
                <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                    ShowPreviousPageButton="False" />
            </Fields>
        </asp:DataPager>
    </div>
    <!--displayBar-->
    <div id="resultPageBar" class="bookInfoText">
        Result Pages: <b>1</b>
    </div>
    <!--resultPagebar-->
</asp:Content>
